#pragma once

#include "RegKeyValue.h"
#include <vector>
class RegKey
{
public:
	typedef std::vector<RegKeyValue> ValueArray;
	typedef ValueArray::iterator ValueArrayIter;
public:
	RegKey(void);
	~RegKey(void);
public:
	void SetName(CString name) { name_ = name; }
	CString GetName() const { return name_; }
	CString GetTextName() const { return _T("Test\\") + name_; }
public:
	void AddValue(RegKeyValue& keyValue) { valueArray_.push_back(keyValue); }
	RegKeyValue GetValue(size_t index) const { return valueArray_[index]; }
	size_t GetValueSize() const { return valueArray_.size(); }

	void Clear();
	bool IsEmpty();

public:
	CString ToNameString();
	void ToAllString();
private:
	CString name_;
	ValueArray valueArray_;
};
